import request from "@/utils/request";

/** 登录 */
export function login(data = {}, params = {}) {
  return request({
    url: "/login",
    method: "POST",
    data,
    params,
  });
}

/** 退出登录 */
export function logout(data = {}, params = {}) {
  return request({
    url: "/logout",
    method: "POST",
    data,
    params,
  });
}